package com.fresh.fresh.dao;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.time.Instant;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 订单表
 */
@Data
@ApiModel("订单类")
public class Orders {
    private Integer id;
    private Integer commodityId;
    private Integer userId;
    private String state;
//    @TableId(type = IdType.ASSIGN_UUID)
    private String uid;

    private LocalDateTime orderTime;

//    @JsonFormat(pattern = "yyyy-mm-dd HH:mm")
    private String payTime;

    @TableField(exist = false)
    private List<Item> orderItem;


}
